package com.example.tse.rbhttpservice.service.goods.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.goods.model.GoodsGetRecommend;
//import com.rbyair.services.goods.model.GoodsGetSpecs;
//import com.rbyair.services.goods.model.GoodsGetCategoryPics;
/**
* 获取不同类型的商品详情（类型有普通商品、秒杀商品、新品特卖、即将开售］），只包含商品的基本信息（价格、库存、限购等除外），秒杀商品需要秒杀状态（需要根据状态显示不同按钮）或倒计时，特卖商品中商品价格为特卖专门设置的价格，即将开售商品显示开售提醒按钮，分享的数据是商品第一张图＋商品名称＋固定描述文字＋链接
* @author wliu
* edit tse
*/
public class GoodsGetResponse extends RudderResponse{

private String goodsId = "";


private String bn = "";


private String name = "";


private String price = "";


private String mktprice = "";


private String weight = "";


private List<String> pics = new ArrayList<String>();


private String type = "";


private String quantity = "";


private String limit = "";


private String brief = "";


private GoodsGetRecommend recommend = new GoodsGetRecommend();


private String intro = "";


private String unit = "";


private String secondStatus = "";


private String secondBeginTime = "";


private String isFaved = "";


private String isNoticed = "";


private String shareLink = "";


private String productId = "";


private List<GoodsGetSpecs> specs = new ArrayList<GoodsGetSpecs>();


private String discount = "";


private String brandName = "";


private String catName = "";


private String curTime = "";


private String iconImg = "";


private String isTax = "";


private String countryImg = "";


private String countryName = "";


private List<GoodsGetCategoryPics> categoryPics = new ArrayList<GoodsGetCategoryPics>();


/**
* @return goodsId
*/
public String getGoodsId() {
return this.goodsId;
}

/**
* @return goodsId
*/
public void setGoodsId(String goodsId) {
this.goodsId = goodsId;
}
/**
methodName    GoodsId
type          String
name          goodsId
defaultType   ""
*/

/**
* @return bn
*/
public String getBn() {
return this.bn;
}

/**
* @return bn
*/
public void setBn(String bn) {
this.bn = bn;
}
/**
methodName    Bn
type          String
name          bn
defaultType   ""
*/

/**
* @return name
*/
public String getName() {
return this.name;
}

/**
* @return name
*/
public void setName(String name) {
this.name = name;
}
/**
methodName    Name
type          String
name          name
defaultType   ""
*/

/**
* @return price
*/
public String getPrice() {
return this.price;
}

/**
* @return price
*/
public void setPrice(String price) {
this.price = price;
}
/**
methodName    Price
type          String
name          price
defaultType   ""
*/

/**
* @return mktprice
*/
public String getMktprice() {
return this.mktprice;
}

/**
* @return mktprice
*/
public void setMktprice(String mktprice) {
this.mktprice = mktprice;
}
/**
methodName    Mktprice
type          String
name          mktprice
defaultType   ""
*/

/**
* @return weight
*/
public String getWeight() {
return this.weight;
}

/**
* @return weight
*/
public void setWeight(String weight) {
this.weight = weight;
}
/**
methodName    Weight
type          String
name          weight
defaultType   ""
*/

/**
* @return pics
*/
public List<String> getPics() {
return this.pics;
}

/**
* @return pics
*/
public void setPics(List<String> pics) {
this.pics = pics;
}
/**
methodName    Pics
type          List<String>
name          pics
defaultType   new ArrayList<String>()
*/

/**
* @return type
*/
public String getType() {
return this.type;
}

/**
* @return type
*/
public void setType(String type) {
this.type = type;
}
/**
methodName    Type
type          String
name          type
defaultType   ""
*/

/**
* @return quantity
*/
public String getQuantity() {
return this.quantity;
}

/**
* @return quantity
*/
public void setQuantity(String quantity) {
this.quantity = quantity;
}
/**
methodName    Quantity
type          String
name          quantity
defaultType   ""
*/

/**
* @return limit
*/
public String getLimit() {
return this.limit;
}

/**
* @return limit
*/
public void setLimit(String limit) {
this.limit = limit;
}
/**
methodName    Limit
type          String
name          limit
defaultType   ""
*/

/**
* @return brief
*/
public String getBrief() {
return this.brief;
}

/**
* @return brief
*/
public void setBrief(String brief) {
this.brief = brief;
}
/**
methodName    Brief
type          String
name          brief
defaultType   ""
*/

/**
* @return recommend
*/
public GoodsGetRecommend getRecommend() {
return this.recommend;
}

/**
* @return recommend
*/
public void setRecommend(GoodsGetRecommend recommend) {
this.recommend = recommend;
}
/**
methodName    Recommend
type          GoodsGetRecommend
name          recommend
defaultType   new GoodsGetRecommend()
*/

/**
* @return intro
*/
public String getIntro() {
return this.intro;
}

/**
* @return intro
*/
public void setIntro(String intro) {
this.intro = intro;
}
/**
methodName    Intro
type          String
name          intro
defaultType   ""
*/

/**
* @return unit
*/
public String getUnit() {
return this.unit;
}

/**
* @return unit
*/
public void setUnit(String unit) {
this.unit = unit;
}
/**
methodName    Unit
type          String
name          unit
defaultType   ""
*/

/**
* @return secondStatus
*/
public String getSecondStatus() {
return this.secondStatus;
}

/**
* @return secondStatus
*/
public void setSecondStatus(String secondStatus) {
this.secondStatus = secondStatus;
}
/**
methodName    SecondStatus
type          String
name          secondStatus
defaultType   ""
*/

/**
* @return secondBeginTime
*/
public String getSecondBeginTime() {
return this.secondBeginTime;
}

/**
* @return secondBeginTime
*/
public void setSecondBeginTime(String secondBeginTime) {
this.secondBeginTime = secondBeginTime;
}
/**
methodName    SecondBeginTime
type          String
name          secondBeginTime
defaultType   ""
*/

/**
* @return isFaved
*/
public String getIsFaved() {
return this.isFaved;
}

/**
* @return isFaved
*/
public void setIsFaved(String isFaved) {
this.isFaved = isFaved;
}
/**
methodName    IsFaved
type          String
name          isFaved
defaultType   ""
*/

/**
* @return isNoticed
*/
public String getIsNoticed() {
return this.isNoticed;
}

/**
* @return isNoticed
*/
public void setIsNoticed(String isNoticed) {
this.isNoticed = isNoticed;
}
/**
methodName    IsNoticed
type          String
name          isNoticed
defaultType   ""
*/

/**
* @return shareLink
*/
public String getShareLink() {
return this.shareLink;
}

/**
* @return shareLink
*/
public void setShareLink(String shareLink) {
this.shareLink = shareLink;
}
/**
methodName    ShareLink
type          String
name          shareLink
defaultType   ""
*/

/**
* @return productId
*/
public String getProductId() {
return this.productId;
}

/**
* @return productId
*/
public void setProductId(String productId) {
this.productId = productId;
}
/**
methodName    ProductId
type          String
name          productId
defaultType   ""
*/

/**
* @return specs
*/
public List<GoodsGetSpecs> getSpecs() {
return this.specs;
}

/**
* @return specs
*/
public void setSpecs(List<GoodsGetSpecs> specs) {
this.specs = specs;
}
/**
methodName    Specs
type          List<GoodsGetSpecs>
name          specs
defaultType   new ArrayList<GoodsGetSpecs>()
*/

/**
* @return discount
*/
public String getDiscount() {
return this.discount;
}

/**
* @return discount
*/
public void setDiscount(String discount) {
this.discount = discount;
}
/**
methodName    Discount
type          String
name          discount
defaultType   ""
*/

/**
* @return brandName
*/
public String getBrandName() {
return this.brandName;
}

/**
* @return brandName
*/
public void setBrandName(String brandName) {
this.brandName = brandName;
}
/**
methodName    BrandName
type          String
name          brandName
defaultType   ""
*/

/**
* @return catName
*/
public String getCatName() {
return this.catName;
}

/**
* @return catName
*/
public void setCatName(String catName) {
this.catName = catName;
}
/**
methodName    CatName
type          String
name          catName
defaultType   ""
*/

/**
* @return curTime
*/
public String getCurTime() {
return this.curTime;
}

/**
* @return curTime
*/
public void setCurTime(String curTime) {
this.curTime = curTime;
}
/**
methodName    CurTime
type          String
name          curTime
defaultType   ""
*/

/**
* @return iconImg
*/
public String getIconImg() {
return this.iconImg;
}

/**
* @return iconImg
*/
public void setIconImg(String iconImg) {
this.iconImg = iconImg;
}
/**
methodName    IconImg
type          String
name          iconImg
defaultType   ""
*/

/**
* @return isTax
*/
public String getIsTax() {
return this.isTax;
}

/**
* @return isTax
*/
public void setIsTax(String isTax) {
this.isTax = isTax;
}
/**
methodName    IsTax
type          String
name          isTax
defaultType   ""
*/

/**
* @return countryImg
*/
public String getCountryImg() {
return this.countryImg;
}

/**
* @return countryImg
*/
public void setCountryImg(String countryImg) {
this.countryImg = countryImg;
}
/**
methodName    CountryImg
type          String
name          countryImg
defaultType   ""
*/

/**
* @return countryName
*/
public String getCountryName() {
return this.countryName;
}

/**
* @return countryName
*/
public void setCountryName(String countryName) {
this.countryName = countryName;
}
/**
methodName    CountryName
type          String
name          countryName
defaultType   ""
*/

/**
* @return categoryPics
*/
public List<GoodsGetCategoryPics> getCategoryPics() {
return this.categoryPics;
}

/**
* @return categoryPics
*/
public void setCategoryPics(List<GoodsGetCategoryPics> categoryPics) {
this.categoryPics = categoryPics;
}
/**
methodName    CategoryPics
type          List<GoodsGetCategoryPics>
name          categoryPics
defaultType   new ArrayList<GoodsGetCategoryPics>()
*/

/**


    private static void filterFor(GoodsGetRecommend goods) {
        if (goods.getRecommendImg() == null) {
            goods.setRecommendImg("");
        }
        if (goods.getRecommendName() == null) {
            goods.setRecommendName("");
        }
        if (goods.getRecommendDescription() == null) {
            goods.setRecommendDescription("");
        }
    }

    private static void filterFor(GoodsGetSpecsSpecValues goods) {
        if (goods.getProductId() == null) {
            goods.setProductId("");
        }
        if (goods.getSpecValue() == null) {
            goods.setSpecValue("");
        }
    }

    private static void filterFor(GoodsGetSpecs goods) {
        if (goods.getSpecId() == null) {
            goods.setSpecId("");
        }
        if (goods.getSpecName() == null) {
            goods.setSpecName("");
        }
        if (goods.getSpecValues() == null) {
            goods.setSpecValues(new ArrayList<GoodsGetSpecsSpecValues>());
        } else {
            for (GoodsGetSpecsSpecValues item : goods.getSpecValues()) {
                filterFor(item);
            }
        }
    }

    private static void filterFor(GoodsGetCategoryPics goods) {
        if (goods.getLink() == null) {
            goods.setLink("");
        }
        if (goods.getUrl() == null) {
            goods.setUrl("");
        }
    }

    public static void filter(GoodsGetResponse goods) {
        if (goods.getGoodsId() == null) {
            goods.setGoodsId("");
        }
        if (goods.getBn() == null) {
            goods.setBn("");
        }
        if (goods.getName() == null) {
            goods.setName("");
        }
        if (goods.getPrice() == null) {
            goods.setPrice("");
        }
        if (goods.getMktprice() == null) {
            goods.setMktprice("");
        }
        if (goods.getWeight() == null) {
            goods.setWeight("");
        }
        if (goods.getPics() == null) {
            goods.setPics(new ArrayList<String>());
        }
        if (goods.getType() == null) {
            goods.setType("");
        }
        if (goods.getQuantity() == null) {
            goods.setQuantity("");
        }
        if (goods.getLimit() == null) {
            goods.setLimit("");
        }
        if (goods.getBrief() == null) {
            goods.setBrief("");
        }
        if (goods.getRecommend() == null) {
            goods.setRecommend(new GoodsGetRecommend());
        } else {
            filterFor(goods.getRecommend());
        }
        if (goods.getIntro() == null) {
            goods.setIntro("");
        }
        if (goods.getUnit() == null) {
            goods.setUnit("");
        }
        if (goods.getSecondStatus() == null) {
            goods.setSecondStatus("");
        }
        if (goods.getSecondBeginTime() == null) {
            goods.setSecondBeginTime("");
        }
        if (goods.getIsFaved() == null) {
            goods.setIsFaved("");
        }
        if (goods.getIsNoticed() == null) {
            goods.setIsNoticed("");
        }
        if (goods.getShareLink() == null) {
            goods.setShareLink("");
        }
        if (goods.getProductId() == null) {
            goods.setProductId("");
        }
        if (goods.getSpecs() == null) {
            goods.setSpecs(new ArrayList<GoodsGetSpecs>());
        } else {
            for (GoodsGetSpecs item : goods.getSpecs()) {
                filterFor(item);
            }
        }
        if (goods.getDiscount() == null) {
            goods.setDiscount("");
        }
        if (goods.getBrandName() == null) {
            goods.setBrandName("");
        }
        if (goods.getCatName() == null) {
            goods.setCatName("");
        }
        if (goods.getCurTime() == null) {
            goods.setCurTime("");
        }
        if (goods.getIconImg() == null) {
            goods.setIconImg("");
        }
        if (goods.getIsTax() == null) {
            goods.setIsTax("");
        }
        if (goods.getCountryImg() == null) {
            goods.setCountryImg("");
        }
        if (goods.getCountryName() == null) {
            goods.setCountryName("");
        }
        if (goods.getCategoryPics() == null) {
            goods.setCategoryPics(new ArrayList<GoodsGetCategoryPics>());
        } else {
            for (GoodsGetCategoryPics item : goods.getCategoryPics()) {
                filterFor(item);
            }
        }
    }

*/

}
